package com.aizuda.boot.config.properties;

import com.aizuda.service.web.IExcludePaths;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author hjw
 * @description 不需要验证权限的接口
 * @date 2025年06月23日 15:36
 */
@Configuration
@Component
@ConfigurationProperties(prefix = "kisso")
@Data
public class ExcludePathsProperties implements IExcludePaths {

    private List<String> excludePaths;

    @Override
    public List<String> getPaths() {

        return excludePaths == null ? List.of() : excludePaths;
    }
}
